import { createApp } from 'vue'
import './assets/style.css'
import App from './App.vue'


//引入router
import router from './router/router'
//引入pinia
import { createPinia } from 'pinia'
const pinia = createPinia()
//全局注册组件
import Header from './components/header.vue'

//引入vant组件
import { Button } from 'vant';
import { Tabbar, TabbarItem } from 'vant';

const app = createApp(App);

app.use(Button);
app.use(Tabbar);
app.use(TabbarItem);

app.use(router)
app.use(pinia)
app.component('Header', Header)




app.mount('#app');